/**
 * 
 */
package gui;

import java.awt.*;

import javax.swing.*;

/**
 * @author Chris
 *
 */
public class ProfilePane extends JPanel {
	
	public ProfilePane() {
		GridBagLayout gbl = new GridBagLayout();
		this.setLayout(gbl);
		GridBagConstraints gbc = new GridBagConstraints();
		this.setBackground(Color.orange);
		
		JLabel jlName = new JLabel("Name:");
		gbc.gridx = 0;
		gbc.gridy = 0; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 30; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.NONE; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlName, gbc);
		this.add(jlName); 
		
		JTextField jtfName = new JTextField();
		gbc.gridx = 1;
		gbc.gridy = 0; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 70; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jtfName, gbc);
		this.add(jtfName); 
		
		JLabel jlMajor = new JLabel("Primary Major:");
		gbc.gridx = 0;
		gbc.gridy = 1; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 30; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.NONE; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlMajor, gbc);
		this.add(jlMajor); 
	
		JComboBox jcbMajor = new JComboBox();
		gbc.gridx = 1;
		gbc.gridy = 1; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 70; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jcbMajor, gbc);
		jcbMajor.addItem("");
		jcbMajor.addItem("Computer Science");
		jcbMajor.addItem("Information Systems");
		this.add(jcbMajor);

		JLabel jlMinors = new JLabel("Additional Majors and Minors:");
		gbc.gridx = 0;
		gbc.gridy = 2; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 70; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.NONE; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlMinors, gbc);
		this.add(jlMinors);
		
		Box MinorsBox = Box.createVerticalBox();
		Box[] ADDBox = new Box[5];
		ADDBox[0] = Box.createHorizontalBox();
		ADDBox[1] = ADDBox[2] = ADDBox[3] = ADDBox[4] = null; 
		
		JComboBox jcbMM = new JComboBox();
		jcbMM.addItem("");
		jcbMM.addItem("Minor");
		jcbMM.addItem("Major");
		ADDBox[0].add(jcbMM);
		
		JComboBox jcbMinor = new JComboBox();
		jcbMinor.addItem("");
		jcbMinor.addItem("Computer Science");
		jcbMinor.addItem("Information Systems");
		ADDBox[0].add(jcbMinor);
		MinorsBox.add(ADDBox[0]);
		
		gbc.gridx = 1;
		gbc.gridy = 2; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 70; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.HORIZONTAL; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(MinorsBox, gbc);
		this.add(MinorsBox); 
		
		JLabel c = new JLabel("Completed Classes:");
		gbc.gridx = 0;
		gbc.gridy = 3; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 10; 
		gbc.weighty = 5; 
		gbc.fill = GridBagConstraints.NONE; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(c, gbc);
		this.add(c);
		
		CompletedClasses FinishedClasses = new CompletedClasses();
		JScrollPane scrollClasses = new JScrollPane(FinishedClasses);
		gbc.gridx = 0;
		gbc.gridy = 4; 
		gbc.gridwidth = 2; 
		gbc.gridheight = 2; 
		gbc.weightx = 70; 
		gbc.weighty = 50; 
		gbc.fill = GridBagConstraints.BOTH; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(scrollClasses, gbc);
		this.add(scrollClasses);
		
		JLabel jlCCredits = new JLabel("Completed Credits:");
		gbc.gridx = 0;
		gbc.gridy = 6; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 70; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.NONE; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlCCredits, gbc);
		this.add(jlCCredits);
		
		JLabel jlSCredits = new JLabel("Scheduled Credits:");
		gbc.gridx = 1;
		gbc.gridy = 6; 
		gbc.gridwidth = 1; 
		gbc.gridheight = 1; 
		gbc.weightx = 70; 
		gbc.weighty = 10; 
		gbc.fill = GridBagConstraints.NONE; 
		gbc.anchor = GridBagConstraints.LINE_START; 
		gbl.setConstraints(jlSCredits, gbc);
		this.add(jlSCredits);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
